import request from '@/utils/request'


export function pageUsers(current,limit) {
  return request({
    url: `/manager/user/pageUsers/${current}/${limit}`,
    method: 'get'
  })
}

export function getUserById(id) {
  return request({
    url:  `/manager/user/getUserById/${id}`,
    method: 'get'
  })
}

export function deleteUserById(id) {
  return request({
    url:  `/manager/user/deleteUserById/${id}`,
    method: 'delete'
  })
}

export function updatePassword(id) {
  return request({
    url:  `/manager/user/updatePassword/${id}`,
    method: 'post'
  })
}

export function updatePassword(data) {
  return request({
    url:  `/manager/user/updateUser`,
    method: 'post',
    data: data
  })
}

